<?php
use yii\web\View;

/* @var $this yii\web\View */
$this->title = '锐锋堂刀剑网-龙泉刀剑知名网上商城、正品行货、代批发、拒绝盗版';
$this->registerJsFile('/js/jquery.lazyload.min.js', [
    'position' => View::POS_END
]);
$this->registerJsFile('/js/lrscroll.js', [
    'position' => View::POS_END
]);
$this->registerJs('$(function() {
      jQuery("img.lazy").lazyload({effect: "fadeIn",threshold :70});
  });');
$this->registerMetaTag([
    'name' => 'keywords',
    'content' => '龙泉宝剑、武士刀、刀剑定制批发、影视刀剑、锐锋堂'
]);
$this->registerMetaTag([
    'name' => 'description',
    'content' => '锐锋堂刀剑网(daojianchang.com):龙泉刀剑知名网上商城,销售：龙泉宝剑、日本武士刀、刀剑定制、斩马刀、刀剑批发,厂家直销,正品保证'
]);
$this->registerJs('$(".bxslider").bxSlider({
                auto:true,
                prevSelector:jq(".top_slide_wrap .op_prev")[0],nextSelector:jq(".top_slide_wrap .op_next")[0]
            });');
$column= Yii::$app->view->params['column'];
?>

<div class="i_ban_bg">
	<!--Begin Banner Begin-->
	<div class="banner">
		<div class="top_slide_wrap">
			<ul class="slide_box bxslider">
                <?php if(isset($banner[1])):?>
                <?php foreach($banner[1] as $val):?>
                    <li><a href='<?=$val['url']?>' target="_blank"><img
						src="<?=$val['logo']?>" alt="锐锋堂宝剑广告图" width="740" height="401" /></a></li>
                <?php endforeach;?>
               <?php endif;?>
                </ul>
			<div class="op_btns clearfix">
				<a href="#" class="op_btn op_prev"><span></span></a> <a href="#"
					class="op_btn op_next"><span></span></a>
			</div>
		</div>
	</div>
	<!--End Banner End-->
	<div class="inews">
		<div class="news_t">
			<span class="fr"><a href="/news/index.html" target="_blank">更多 ></a></span>新闻资讯
		</div>
		<ul>
		<?php if(!empty($news)):?>
		<?php foreach($news as $val):?>
			<li><span>[ <?=$val['newColumn']['name']?> ]</span><a href="/news/view-<?=$val['id']?>.html"><?=mb_strimwidth(strip_tags($val['title']), 0, 25, '...','utf8')?></a></li>
		<?php endforeach;?>
		<?php endif;?>
		</ul>
	</div>
</div>
<!--Begin 热门商品 Begin-->
<div class="content mar_10">
	<div class="hot_pro">
		<div id="featureContainer">
			<div id="feature">
				<div id="block">
					<div id="botton-scroll">
						<ul class="featureUL">
						<?php if(!empty($hot)):?>
						<?php foreach($hot as $val):?>
							<li class="featureBox">
								<div class="box">
									<div class="h_icon">
										<img src="/images/hot.png" width="50" height="50" alt='<?=$val['name']?>' />
									</div>
									<div class="imgbg">
										<a href="/goods/view-<?=$val['id']?>.html" target="_blank"><img  alt='<?=$val['name']?>' src="<?=$val['logo']?>" width="203"
											height="140" /></a>
									</div>
									<div class="name">
										<a href="/goods/view-<?=$val['id']?>.html" target="_blank">
											<h2><?=$cdata[$val['pid']]['name']?></h2> <?=$val['name']?>
										</a>
									</div>
									<div class="price">
										<font>￥<span><?=$val['price']?></span></font> &nbsp; 
									</div>
								</div>
							</li>
						<?php endforeach;?>
						<?php endif;?>
						</ul>
					</div>
				</div>
				<a class="h_prev" href="javascript:void();">Previous</a> <a
					class="h_next" href="javascript:void();">Next</a>
			</div>
		</div>
	</div>
</div>

<!--Begin 进口 生鲜 Begin-->
<?php if(!empty($column[0])):?>
<?php foreach($column[0] as $key=>$val):?>
<?php if(!empty($data[$val['id']])):?>
<div class="i_t mar_10">
	<span class="floor_num"><?=$key+1?>F</span> <span class="fl"><?=$val['name']?>
	</span> 
	
	<span class="i_mores fr">
	<?php if(!empty($column[$val['id']])):?>
	<?php foreach($column[$val['id']] as $k=>$v):?>
	<?php if($k>=5):?>
	<a href="/goods/index-<?=$val['id']?>.html" target="_blank">更多</a>
	<?php break;endif;?>
	<a href="/goods/index-<?=$v['id']?>.html" target="_blank"><?=$v['name']?></a>&nbsp; &nbsp;&nbsp; 
	<?php endforeach;?>
	<?php endif;?>
</div>
<div class="content" style='background: #fff;'>
	<div class="fresh_mid">
		<ul>
		<?php foreach($data[$val['id']] as $v):?>
			<li>
				
				<div class="img">
					<a href="/goods/view-<?=$v['id']?>.html" target="_blank"><img class="lazy" data-original="<?=$v['logo']?>" alt='<?=$v['name']?>' width="203" height="140" /></a>
				</div>
				<div class="name">
					<a href="/goods/view-<?=$v['id']?>.html" target="_blank"><?=$v['name']?></a>
				</div>
				<div class="price">
					<font>￥<span><?=$v['price']?></span></font> &nbsp; 人民币
				</div>
			</li>
			<?php endforeach;?>
		</ul>
	</div>
</div>
<?php endif;?>
<?php endforeach;?>
<?php endif;?>
<!--Begin 猜你喜欢 Begin-->
<div class="i_t mar_10">
	<span class="fl">猜你喜欢</span>
</div>
<div class="like">
	<div id="featureContainer1">
		<div id="feature1">
			<div id="block1">
				<div id="botton-scroll1">
					<ul class="featureUL">
					<?php if(!empty($like)):?>
					<?php foreach($like as $val):?>
						<li class="featureBox">
							<div class="box">
								<div class="imgbg">
									<a href="/goods/view-<?=$val['id']?>.html" target="_blank"><img src="<?=$val['logo']?>" alt='<?=$val['name']?>' width="160"
										height="136" /></a>
								</div>
								<div class="name">
									<a href="/goods/view-<?=$val['id']?>.html" target="_blank">
										<h2><?=$cdata[$val['id']]['name']?></h2> <?=$val['name']?>
									</a>
								</div>
								<div class="price">
									<font>￥<span><?=$val['price']?></span></font> &nbsp; 人民币
								</div>
							</div>
						</li>
						<?php endforeach;?>
					<?php endif;?>
					</ul>
				</div>
			</div>
			<a class="l_prev" href="javascript:void();">Previous</a> <a
				class="l_next" href="javascript:void();">Next</a>
		</div>
	</div>
</div>
<!--End 猜你喜欢 End-->


